import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  storeName: [{ required: true, message: "请输入门店名称", trigger: "blur" }],
  contacts: [{ required: true, message: "请输入门店联系人", trigger: "blur" }],
  contact: [{ required: true, message: "请输入联系方式", trigger: "blur" }],
  brandId: [{ required: true, message: "请选择所属品牌", trigger: "change" }],
  areaId: [{ required: true, message: "请选择所属区域", trigger: "change" }]
});
